package com.travel.common.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class RouteExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RouteExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdIsNull() {
            addCriterion("discounts_id is null");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdIsNotNull() {
            addCriterion("discounts_id is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdEqualTo(Integer value) {
            addCriterion("discounts_id =", value, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdNotEqualTo(Integer value) {
            addCriterion("discounts_id <>", value, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdGreaterThan(Integer value) {
            addCriterion("discounts_id >", value, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("discounts_id >=", value, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdLessThan(Integer value) {
            addCriterion("discounts_id <", value, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdLessThanOrEqualTo(Integer value) {
            addCriterion("discounts_id <=", value, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdIn(List<Integer> values) {
            addCriterion("discounts_id in", values, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdNotIn(List<Integer> values) {
            addCriterion("discounts_id not in", values, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdBetween(Integer value1, Integer value2) {
            addCriterion("discounts_id between", value1, value2, "discountsId");
            return (Criteria) this;
        }

        public Criteria andDiscountsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("discounts_id not between", value1, value2, "discountsId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdIsNull() {
            addCriterion("relation_user_id is null");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdIsNotNull() {
            addCriterion("relation_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdEqualTo(Integer value) {
            addCriterion("relation_user_id =", value, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdNotEqualTo(Integer value) {
            addCriterion("relation_user_id <>", value, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdGreaterThan(Integer value) {
            addCriterion("relation_user_id >", value, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("relation_user_id >=", value, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdLessThan(Integer value) {
            addCriterion("relation_user_id <", value, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("relation_user_id <=", value, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdIn(List<Integer> values) {
            addCriterion("relation_user_id in", values, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdNotIn(List<Integer> values) {
            addCriterion("relation_user_id not in", values, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdBetween(Integer value1, Integer value2) {
            addCriterion("relation_user_id between", value1, value2, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andRelationUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("relation_user_id not between", value1, value2, "relationUserId");
            return (Criteria) this;
        }

        public Criteria andApplyTimeIsNull() {
            addCriterion("apply_time is null");
            return (Criteria) this;
        }

        public Criteria andApplyTimeIsNotNull() {
            addCriterion("apply_time is not null");
            return (Criteria) this;
        }

        public Criteria andApplyTimeEqualTo(Date value) {
            addCriterionForJDBCDate("apply_time =", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("apply_time <>", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("apply_time >", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("apply_time >=", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeLessThan(Date value) {
            addCriterionForJDBCDate("apply_time <", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("apply_time <=", value, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeIn(List<Date> values) {
            addCriterionForJDBCDate("apply_time in", values, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("apply_time not in", values, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("apply_time between", value1, value2, "applyTime");
            return (Criteria) this;
        }

        public Criteria andApplyTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("apply_time not between", value1, value2, "applyTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeIsNull() {
            addCriterion("stop_time is null");
            return (Criteria) this;
        }

        public Criteria andStopTimeIsNotNull() {
            addCriterion("stop_time is not null");
            return (Criteria) this;
        }

        public Criteria andStopTimeEqualTo(Date value) {
            addCriterionForJDBCDate("stop_time =", value, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("stop_time <>", value, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("stop_time >", value, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("stop_time >=", value, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeLessThan(Date value) {
            addCriterionForJDBCDate("stop_time <", value, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("stop_time <=", value, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeIn(List<Date> values) {
            addCriterionForJDBCDate("stop_time in", values, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("stop_time not in", values, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("stop_time between", value1, value2, "stopTime");
            return (Criteria) this;
        }

        public Criteria andStopTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("stop_time not between", value1, value2, "stopTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeIsNull() {
            addCriterion("depart_time is null");
            return (Criteria) this;
        }

        public Criteria andDepartTimeIsNotNull() {
            addCriterion("depart_time is not null");
            return (Criteria) this;
        }

        public Criteria andDepartTimeEqualTo(Date value) {
            addCriterionForJDBCDate("depart_time =", value, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("depart_time <>", value, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("depart_time >", value, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("depart_time >=", value, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeLessThan(Date value) {
            addCriterionForJDBCDate("depart_time <", value, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("depart_time <=", value, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeIn(List<Date> values) {
            addCriterionForJDBCDate("depart_time in", values, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("depart_time not in", values, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("depart_time between", value1, value2, "departTime");
            return (Criteria) this;
        }

        public Criteria andDepartTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("depart_time not between", value1, value2, "departTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNull() {
            addCriterion("return_time is null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIsNotNull() {
            addCriterion("return_time is not null");
            return (Criteria) this;
        }

        public Criteria andReturnTimeEqualTo(Date value) {
            addCriterionForJDBCDate("return_time =", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("return_time <>", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("return_time >", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("return_time >=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThan(Date value) {
            addCriterionForJDBCDate("return_time <", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("return_time <=", value, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeIn(List<Date> values) {
            addCriterionForJDBCDate("return_time in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("return_time not in", values, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("return_time between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andReturnTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("return_time not between", value1, value2, "returnTime");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNull() {
            addCriterion("create_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIsNotNull() {
            addCriterion("create_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdEqualTo(Integer value) {
            addCriterion("create_user_id =", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotEqualTo(Integer value) {
            addCriterion("create_user_id <>", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThan(Integer value) {
            addCriterion("create_user_id >", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_user_id >=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThan(Integer value) {
            addCriterion("create_user_id <", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("create_user_id <=", value, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdIn(List<Integer> values) {
            addCriterion("create_user_id in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotIn(List<Integer> values) {
            addCriterion("create_user_id not in", values, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdBetween(Integer value1, Integer value2) {
            addCriterion("create_user_id between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("create_user_id not between", value1, value2, "createUserId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterionForJDBCDate("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterionForJDBCDate("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterionForJDBCDate("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdIsNull() {
            addCriterion("alert_user_id is null");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdIsNotNull() {
            addCriterion("alert_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdEqualTo(Integer value) {
            addCriterion("alert_user_id =", value, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdNotEqualTo(Integer value) {
            addCriterion("alert_user_id <>", value, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdGreaterThan(Integer value) {
            addCriterion("alert_user_id >", value, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("alert_user_id >=", value, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdLessThan(Integer value) {
            addCriterion("alert_user_id <", value, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("alert_user_id <=", value, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdIn(List<Integer> values) {
            addCriterion("alert_user_id in", values, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdNotIn(List<Integer> values) {
            addCriterion("alert_user_id not in", values, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdBetween(Integer value1, Integer value2) {
            addCriterion("alert_user_id between", value1, value2, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("alert_user_id not between", value1, value2, "alertUserId");
            return (Criteria) this;
        }

        public Criteria andAlertTimeIsNull() {
            addCriterion("alert_time is null");
            return (Criteria) this;
        }

        public Criteria andAlertTimeIsNotNull() {
            addCriterion("alert_time is not null");
            return (Criteria) this;
        }

        public Criteria andAlertTimeEqualTo(Date value) {
            addCriterionForJDBCDate("alert_time =", value, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeNotEqualTo(Date value) {
            addCriterionForJDBCDate("alert_time <>", value, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeGreaterThan(Date value) {
            addCriterionForJDBCDate("alert_time >", value, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("alert_time >=", value, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeLessThan(Date value) {
            addCriterionForJDBCDate("alert_time <", value, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("alert_time <=", value, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeIn(List<Date> values) {
            addCriterionForJDBCDate("alert_time in", values, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeNotIn(List<Date> values) {
            addCriterionForJDBCDate("alert_time not in", values, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("alert_time between", value1, value2, "alertTime");
            return (Criteria) this;
        }

        public Criteria andAlertTimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("alert_time not between", value1, value2, "alertTime");
            return (Criteria) this;
        }

        public Criteria andIntroduceIsNull() {
            addCriterion("introduce is null");
            return (Criteria) this;
        }

        public Criteria andIntroduceIsNotNull() {
            addCriterion("introduce is not null");
            return (Criteria) this;
        }

        public Criteria andIntroduceEqualTo(String value) {
            addCriterion("introduce =", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceNotEqualTo(String value) {
            addCriterion("introduce <>", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceGreaterThan(String value) {
            addCriterion("introduce >", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceGreaterThanOrEqualTo(String value) {
            addCriterion("introduce >=", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceLessThan(String value) {
            addCriterion("introduce <", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceLessThanOrEqualTo(String value) {
            addCriterion("introduce <=", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceLike(String value) {
            addCriterion("introduce like", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceNotLike(String value) {
            addCriterion("introduce not like", value, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceIn(List<String> values) {
            addCriterion("introduce in", values, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceNotIn(List<String> values) {
            addCriterion("introduce not in", values, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceBetween(String value1, String value2) {
            addCriterion("introduce between", value1, value2, "introduce");
            return (Criteria) this;
        }

        public Criteria andIntroduceNotBetween(String value1, String value2) {
            addCriterion("introduce not between", value1, value2, "introduce");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameIsNull() {
            addCriterion("relation_user_name is null");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameIsNotNull() {
            addCriterion("relation_user_name is not null");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameEqualTo(String value) {
            addCriterion("relation_user_name =", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameNotEqualTo(String value) {
            addCriterion("relation_user_name <>", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameGreaterThan(String value) {
            addCriterion("relation_user_name >", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameGreaterThanOrEqualTo(String value) {
            addCriterion("relation_user_name >=", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameLessThan(String value) {
            addCriterion("relation_user_name <", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameLessThanOrEqualTo(String value) {
            addCriterion("relation_user_name <=", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameLike(String value) {
            addCriterion("relation_user_name like", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameNotLike(String value) {
            addCriterion("relation_user_name not like", value, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameIn(List<String> values) {
            addCriterion("relation_user_name in", values, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameNotIn(List<String> values) {
            addCriterion("relation_user_name not in", values, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameBetween(String value1, String value2) {
            addCriterion("relation_user_name between", value1, value2, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserNameNotBetween(String value1, String value2) {
            addCriterion("relation_user_name not between", value1, value2, "relationUserName");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelIsNull() {
            addCriterion("relation_user_tel is null");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelIsNotNull() {
            addCriterion("relation_user_tel is not null");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelEqualTo(String value) {
            addCriterion("relation_user_tel =", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelNotEqualTo(String value) {
            addCriterion("relation_user_tel <>", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelGreaterThan(String value) {
            addCriterion("relation_user_tel >", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelGreaterThanOrEqualTo(String value) {
            addCriterion("relation_user_tel >=", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelLessThan(String value) {
            addCriterion("relation_user_tel <", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelLessThanOrEqualTo(String value) {
            addCriterion("relation_user_tel <=", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelLike(String value) {
            addCriterion("relation_user_tel like", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelNotLike(String value) {
            addCriterion("relation_user_tel not like", value, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelIn(List<String> values) {
            addCriterion("relation_user_tel in", values, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelNotIn(List<String> values) {
            addCriterion("relation_user_tel not in", values, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelBetween(String value1, String value2) {
            addCriterion("relation_user_tel between", value1, value2, "relationUserTel");
            return (Criteria) this;
        }

        public Criteria andRelationUserTelNotBetween(String value1, String value2) {
            addCriterion("relation_user_tel not between", value1, value2, "relationUserTel");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}